// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Monitor",
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(
            name: "Monitor",
            targets: ["Monitor"]),
    ],
    dependencies: [
        .package(name: "Reachability", url: "https://gitee.com/jccgulu/Reachability.swift.git", from: "5.1.0"),
        .package(name: "Standard", url:
                    "https://gitee.com/jlab/Standard.git", from: "1.0.8"),
//        .package(name: "AppCenter", url: "https://github.com/microsoft/appcenter-sdk-apple.git", from: "4.1.1"),
    ],
    targets: [
        .target(
            name: "Monitor",
            dependencies: [
                .product(name: "Reachability", package: "Reachability"),
                .product(name: "Standard", package: "Standard"),
//                .product(name: "AppCenterAnalytics", package: "AppCenter"),
//                .product(name: "AppCenterCrashes", package: "AppCenter"),
            ],
            path: "Sources"
        ),
        .testTarget(
            name: "MonitorTests",
            dependencies: ["Monitor"]),
    ]
)
